<?php

namespace App\Services\AttendUser;

use App\Models\User;
use Illuminate\Http\Request;

class AttendUser
{
	protected Request $request;

	public function __construct(Request $request)
	{
		$this->request = $request;
	}

	protected function create()
	{

        $request = $this->request;

        /**
         * @var User $user
         */
        $user = $request->user();
        $user->attentions()->create(['attention_user_id'=>$request->attention_user_id]);

	}

	public function attend()
	{

		$this->create();
	}
}
